using System;
using System.Runtime.InteropServices;
using System.Security.Permissions;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Administration;
using Microsoft.SharePoint.Security;

namespace ITSP.SharePoint.CacheRefresh.Examples.Features.CacheObjectExample
{
    /// <summary>
    /// This feature shows you how you can use the Cache Refresh Framework.
    /// An object of type CacheExampleObject is created
    /// </summary>
    /// <remarks>
    /// </remarks>
    [Guid("274edb03-904a-4c69-b4b7-2542eb197441")]
    public class CacheObjectExampleEventReceiver : SPFeatureReceiver
    {
       public override void FeatureActivated(SPFeatureReceiverProperties properties)
       {
           SPSite parentSite = properties.Feature.Parent as SPSite;
           SPWebApplication parentWebApplication = parentSite.WebApplication;

           CacheExampleObject cacheObject=new CacheExampleObject(parentWebApplication);
       }
    }
}
